package com.crape.common.bean;

import com.crape.common.constants.ConstantCode;
import com.crape.common.utils.StringUtil;

public class LoginUser {

	public static final String SESSION_LOGINUSER = "sessionLoginuser";

	private String loginId;
	private String password;
	private String email;
	private Long accountid;
	private String username;
	private String checkcode;
	private Integer usertype;
	private String sys;
	private String imagename; // 图片名称
	private String image; // 原图

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getAccountid() {
		return accountid;
	}

	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCheckcode() {
		return checkcode;
	}

	public void setCheckcode(String checkcode) {
		this.checkcode = checkcode;
	}

	public Integer getUsertype() {
		return usertype;
	}

	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}

	public String getSys() {
		return sys;
	}

	public void setSys(String sys) {
		this.sys = sys;
	}

	public String getImagename() {
		return imagename;
	}

	public void setImagename(String imagename) {
		this.imagename = imagename;
	}

	public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

	public String[] getImages() {
		return StringUtil.imagesUrl(imagename, ConstantCode.imageSize);
	}
}
